 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ace="http://www.icefaces.org/icefaces/components" 
      xmlns:ice="http://www.icesoft.com/icefaces/component"
      xmlns:c="http://java.sun.com/jstl/core">
      
	   <ice:tree value="#{leftNavBean.model}"
	                  var="node"
	                  hideRootNode="false"
	                  hideNavigation="false" rendered="#{loginBean.loginStatus != userHome}">
	            <ice:treeNode>
	                <f:facet name="icon">
	                    <h:graphicImage value="#{node.userObject.icon}" alt="#{node.userObject.tooltip}"/>
	                </f:facet>
	                <f:facet name="content">	           
				          
				          
           <ice:outputText rendered="#{!node.userObject.leaf}" value="#{node.userObject.text}" />
           <ice:commandLink rendered="#{node.userObject.leaf}" value="#{node.userObject.text}" action="#{factBean.showSegmentForm}">
            <f:param name="segmentId" value="#{node.userObject.action}" />    
           </ice:commandLink>
      
				            
		
             					
	                </f:facet>
	            </ice:treeNode>
	   </ice:tree>
            
            
            <ace:panel id="panel"
                       header="Date"
                       closable="true"
                       toggleable="true"
                       collapsed="false"  styleClass="datePanel" rendered="#{loginBean.loginStatus != userHome}">
               
                
			   		<h:panelGrid id="datePanel" columns="2">
                
            			<h:outputText value="Month"/>
               
					 <ice:selectOneMenu styleClass="monthYearSelectBox" partialSubmit="true" value="#{factBean.month}"  valueChangeListener="#{factBean.selectOneChanged}">
	   						<f:selectItems value="#{selectBoxBean.monthList}" />
	 				</ice:selectOneMenu>
	 				
                    <h:outputText value="Year"/>
                    <ice:selectOneMenu styleClass="monthYearSelectBox"  partialSubmit="true" value="#{factBean.year}"  valueChangeListener="#{factBean.selectOneChanged}">
	   						<f:selectItems value="#{selectBoxBean.yearList}" />
	 				</ice:selectOneMenu>
                
					
					</h:panelGrid>  
					
                        
            </ace:panel>
            
            
            
</html>
